package person.xjl.service;

import person.xjl.domain.Student;

import java.util.List;

public interface StudentService {
    //list all students
    List<Student> list();
    //add student
    int add(Student student);
    //delete student
    int delete(int id);
    //select student by primary key
    Student find(int id);
    //edit student
    int edit(Student newStudent);
    //student login
    Student login(String name,String password);
}
